﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WebApi.Models
{
    /// <summary>
    /// 实时天气信息
    /// </summary>
    public class WeatherNow
    {
        /// <summary>
        /// 
        /// </summary>
        public string obsTime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string temp { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string feelsLike { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string icon { get; set; }
        /// <summary>
        /// 霾
        /// </summary>
        public string text { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string wind360 { get; set; }
        /// <summary>
        /// 北风
        /// </summary>
        public string windDir { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string windScale { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string windSpeed { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string humidity { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string precip { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string pressure { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string vis { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string cloud { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string dew { get; set; }
    }

    public class WeatherRefer
    {
        /// <summary>
        /// 
        /// </summary>
        public List<string> sources { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> license { get; set; }
    }

    public class WeatherDataRoot
    {
        /// <summary>
        /// 
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string updateTime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string fxLink { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public WeatherNow now { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public WeatherRefer refer { get; set; }
    }

}
